<template>
  <div class="wrapper">
    <!-- 头部 -->
    <header>
      <i class="fa fa-arrow-left" @click="goBack"></i>
      <div class="title">客服服务</div>
      <div class="placeholder"></div>
    </header>

    <div class="service-details">
      <h3>账号登录问题</h3>
      <ul>
        <li v-for="(detail, index) in serviceDetails" :key="index">
          {{ detail }}
        </li>
      </ul>
    </div>
  </div>
</template>

<script setup>
import { ref } from 'vue';
import { useRouter } from 'vue-router';

const router = useRouter();

const serviceDetails = ref([
  '如何重置密码',
  '忘记用户名怎么办',
  '账号被锁定如何解锁'
]);

const goBack = () => {
  router.back();
};
</script>

<style scoped>
.wrapper {
  width: 100%;
  min-height: 100vh;
  background-color: #fff;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3vw 4vw;
  background-color: #fff;
}

header .fa-arrow-left {
  font-size: 4vw;
  color: #666;
  width: 8vw;
  cursor: pointer;
}

header .title {
  font-size: 4.5vw;
  font-weight: bold;
  color: #333;
}

header .placeholder {
  width: 8vw;
}

.service-details {
  margin-top: 20px;
  padding: 0 4vw;
}

.service-details h3 {
  margin-bottom: 15px;
  font-size: 4vw;
  color: #333;
  border-bottom: 2px solid #eee;
  padding-bottom: 5px;
}

.service-details ul {
  list-style: none;
  padding: 0;
}

.service-details li {
  padding: 3vw 0;
  border-bottom: 1px solid #eee;
  color: #666;
  font-size: 3.8vw;
  transition: all 0.3s ease;
}

.service-details li:hover {
  background-color: #f9f9f9;
  color: #333;
}

.service-details li:last-child {
  border-bottom: none;
}
</style> 